.class public Lcom/instagram/creation/video/h/e;
.super Lcom/instagram/creation/video/h/f;
.source "FullRenderer.java"


# annotations
.annotation build Landroid/annotation/TargetApi;
    value = 0xe
.end annotation


# instance fields
.field protected a:Lcom/instagram/creation/video/e/r;

.field protected b:Lcom/instagram/creation/video/e/p;

.field protected c:Z

.field protected d:Lcom/instagram/creation/video/gl/k;

.field protected e:Lcom/instagram/creation/video/gl/k;

.field protected f:Ljava/nio/FloatBuffer;

.field protected g:Ljava/nio/FloatBuffer;


# direct methods
.method public constructor <init>(I)V
    .locals 1
    .parameter

    .prologue
    .line 33
    invoke-direct {p0, p1}, Lcom/instagram/creation/video/h/f;-><init>(I)V

    .line 34
    new-instance v0, Lcom/instagram/creation/video/e/r;

    invoke-direct {v0}, Lcom/instagram/creation/video/e/r;-><init>()V

    iput-object v0, p0, Lcom/instagram/creation/video/h/e;->a:Lcom/instagram/creation/video/e/r;

    .line 35
    new-instance v0, Lcom/instagram/creation/video/e/k;

    invoke-direct {v0}, Lcom/instagram/creation/video/e/k;-><init>()V

    iput-object v0, p0, Lcom/instagram/creation/video/h/e;->b:Lcom/instagram/creation/video/e/p;

    .line 36
    return-void
.end method


# virtual methods
.method public a(I)V
    .locals 2
    .parameter

    .prologue
    .line 39
    invoke-super {p0, p1}, Lcom/instagram/creation/video/h/f;->a(I)V

    .line 40
    new-instance v0, Lcom/instagram/creation/video/gl/k;

    invoke-direct {v0, p1}, Lcom/instagram/creation/video/gl/k;-><init>(I)V

    iput-object v0, p0, Lcom/instagram/creation/video/h/e;->d:Lcom/instagram/creation/video/gl/k;

    .line 41
    new-instance v0, Lcom/instagram/creation/video/gl/k;

    invoke-direct {v0, p1}, Lcom/instagram/creation/video/gl/k;-><init>(I)V

    iput-object v0, p0, Lcom/instagram/creation/video/h/e;->e:Lcom/instagram/creation/video/gl/k;

    .line 43
    iget-object v0, p0, Lcom/instagram/creation/video/h/e;->b:Lcom/instagram/creation/video/e/p;

    invoke-virtual {v0}, Lcom/instagram/creation/video/e/p;->c()I

    .line 44
    iget-object v0, p0, Lcom/instagram/creation/video/h/e;->a:Lcom/instagram/creation/video/e/r;

    invoke-virtual {v0}, Lcom/instagram/creation/video/e/r;->c()I

    .line 46
    const/high16 v0, 0x3f80

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcom/instagram/creation/video/e/q;->a(FF)[F

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/creation/video/e/q;->a([F)Ljava/nio/FloatBuffer;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/creation/video/h/e;->f:Ljava/nio/FloatBuffer;

    .line 49
    const/4 v0, 0x0

    invoke-static {v0}, Lcom/instagram/creation/video/e/q;->a(I)[F

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/creation/video/e/q;->a([F)Ljava/nio/FloatBuffer;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/creation/video/h/e;->g:Ljava/nio/FloatBuffer;

    .line 52
    iget-object v0, p0, Lcom/instagram/creation/video/h/e;->b:Lcom/instagram/creation/video/e/p;

    iget-object v1, p0, Lcom/instagram/creation/video/h/e;->f:Ljava/nio/FloatBuffer;

    invoke-virtual {v0, v1}, Lcom/instagram/creation/video/e/p;->a(Ljava/nio/FloatBuffer;)V

    .line 53
    iget-object v0, p0, Lcom/instagram/creation/video/h/e;->b:Lcom/instagram/creation/video/e/p;

    iget-object v1, p0, Lcom/instagram/creation/video/h/e;->g:Ljava/nio/FloatBuffer;

    invoke-virtual {v0, v1}, Lcom/instagram/creation/video/e/p;->b(Ljava/nio/FloatBuffer;)V

    .line 54
    return-void
.end method

.method public a(Lcom/instagram/creation/video/e/p;)V
    .locals 2
    .parameter

    .prologue
    .line 90
    iput-object p1, p0, Lcom/instagram/creation/video/h/e;->b:Lcom/instagram/creation/video/e/p;

    .line 91
    iget-object v0, p0, Lcom/instagram/creation/video/h/e;->b:Lcom/instagram/creation/video/e/p;

    iget-object v1, p0, Lcom/instagram/creation/video/h/e;->f:Ljava/nio/FloatBuffer;

    invoke-virtual {v0, v1}, Lcom/instagram/creation/video/e/p;->a(Ljava/nio/FloatBuffer;)V

    .line 92
    iget-object v0, p0, Lcom/instagram/creation/video/h/e;->b:Lcom/instagram/creation/video/e/p;

    iget-object v1, p0, Lcom/instagram/creation/video/h/e;->g:Ljava/nio/FloatBuffer;

    invoke-virtual {v0, v1}, Lcom/instagram/creation/video/e/p;->b(Ljava/nio/FloatBuffer;)V

    .line 93
    return-void
.end method

.method protected b(Lcom/instagram/creation/video/gl/i;)Lcom/instagram/creation/video/gl/i;
    .locals 1
    .parameter

    .prologue
    .line 63
    iget-object v0, p0, Lcom/instagram/creation/video/h/e;->d:Lcom/instagram/creation/video/gl/k;

    return-object v0
.end method

.method public b(I)V
    .locals 1
    .parameter

    .prologue
    .line 57
    iget-object v0, p0, Lcom/instagram/creation/video/h/e;->d:Lcom/instagram/creation/video/gl/k;

    invoke-virtual {v0, p1}, Lcom/instagram/creation/video/gl/k;->a(I)V

    .line 58
    iget-object v0, p0, Lcom/instagram/creation/video/h/e;->e:Lcom/instagram/creation/video/gl/k;

    invoke-virtual {v0, p1}, Lcom/instagram/creation/video/gl/k;->a(I)V

    .line 59
    return-void
.end method

.method public c()V
    .locals 1

    .prologue
    .line 86
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/instagram/creation/video/h/e;->c:Z

    .line 87
    return-void
.end method

.method protected c(Lcom/instagram/creation/video/gl/i;)V
    .locals 3
    .parameter

    .prologue
    const v2, 0x8d40

    .line 68
    iget-object v0, p0, Lcom/instagram/creation/video/h/e;->d:Lcom/instagram/creation/video/gl/k;

    invoke-virtual {v0}, Lcom/instagram/creation/video/gl/k;->b()I

    move-result v0

    .line 70
    iget-boolean v1, p0, Lcom/instagram/creation/video/h/e;->c:Z

    if-eqz v1, :cond_0

    .line 71
    iget-object v1, p0, Lcom/instagram/creation/video/h/e;->e:Lcom/instagram/creation/video/gl/k;

    invoke-virtual {v1}, Lcom/instagram/creation/video/gl/k;->a()I

    move-result v1

    invoke-static {v2, v1}, Landroid/opengl/GLES20;->glBindFramebuffer(II)V

    .line 72
    iget-object v1, p0, Lcom/instagram/creation/video/h/e;->b:Lcom/instagram/creation/video/e/p;

    invoke-virtual {v1, v0}, Lcom/instagram/creation/video/e/p;->a(I)V

    .line 73
    iget-object v0, p0, Lcom/instagram/creation/video/h/e;->e:Lcom/instagram/creation/video/gl/k;

    invoke-virtual {v0}, Lcom/instagram/creation/video/gl/k;->b()I

    move-result v0

    .line 76
    :cond_0
    invoke-interface {p1}, Lcom/instagram/creation/video/gl/i;->a()I

    move-result v1

    invoke-static {v2, v1}, Landroid/opengl/GLES20;->glBindFramebuffer(II)V

    .line 78
    iget-boolean v1, p0, Lcom/instagram/creation/video/h/e;->c:Z

    if-eqz v1, :cond_1

    .line 79
    iget-object v1, p0, Lcom/instagram/creation/video/h/e;->a:Lcom/instagram/creation/video/e/r;

    invoke-virtual {v1, v0}, Lcom/instagram/creation/video/e/r;->a(I)V

    .line 83
    :goto_0
    return-void

    .line 81
    :cond_1
    iget-object v1, p0, Lcom/instagram/creation/video/h/e;->b:Lcom/instagram/creation/video/e/p;

    invoke-virtual {v1, v0}, Lcom/instagram/creation/video/e/p;->a(I)V

    goto :goto_0
.end method
